#!/bin/bash
clear
javac -Xlint -deprecation -g $1.java
java $1
rm *.class
echo ""
echo "----- END -----"
echo ""
# - OLD - #
#[ -f "$1.class" ] && rm $1.class
#for file in $1.java
#do
#echo "... WORKING ON $file ..."
#echo ""
#javac -Xlint -deprecation -g $file
#done
#if [ -f "$1.class" ]
#then
#java $1
#echo ""
#echo "... HAPPY ..."
#else
#echo " ... NOTHING ... "
#fi